<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: Arial, Helvetica, sans-serif;
            background-image: url(
            'https://haowallpaper.com/link/common/file/getCroppingImg/f0a61f0a2637cc921a72fdbc02f9cdb7f0a61f0a2637cc921a72fdbc02f9cdb7'
            );
            object-fit: cover;
            /*background-size: cover;*/
            background-position: center;
        }

        .login {
            width: 300px;
            padding: 16px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            border-radius: 4px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .login h1 {
            text-align: center;
            margin-bottom: 24px;
        }

        .login input[type="text"],
        .login input[type="password"] {
            width: 100%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 1px solid #ccc;
            box-sizing: border-box;
            border-radius: 4px;
        }

        .login button {
            background-color: #4CAF50;
            color: white;
            padding: 14px 20px;
            margin: 8px 0;
            border: none;
            cursor: pointer;
            width: 100%;
            border-radius: 4px;
        }

        .login-container button:hover {
            opacity: 0.8;
        }
    </style>
</head>
<body>
    <div class="login">
        <h1>登录</h1>
        <form action="{{ url_for('login') }}" method="post">
            <label for="username"><b>用户名</b></label>
            <input type="text" placeholder="输入用户名" name="username" required>
            <label for="password"><b>密码</b></label>
            <input type="password" placeholder="输入密码" name="password" required>
            <button type="submit">登录</button>
        </form>
    </div>
</body>
</html>





